package com.wy.powerbuilder.service.impl.nxr;

import com.wy.powerbuilder.entity.nxr.*;
import com.wy.powerbuilder.mapper.nxr.ConsultingRentMapper;
import com.wy.powerbuilder.service.nxr.ConsultingRentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConsultingRentServiceImpl implements ConsultingRentService {

    @Autowired
    private ConsultingRentMapper consultingRentMapper;


    //分页查询
    @Override
    public List<ConsultingRent> SelAll() {
        return consultingRentMapper.SelListAll();
    }

    //根据ID查询信息
    @Override
    public RentItem SelId(Integer rent_id) {
        return consultingRentMapper.SelId(rent_id);
    }

    //查询所有
    @Override
    public List<ConsultState> SeleConsultState() {
        return consultingRentMapper.SeleConsultState();
    }
    //查询所有
    @Override
    public List<ItemCategory> SelItemCategory() {
        return consultingRentMapper.SelItemCategory();
    }
    //查询所有
    @Override
    public List<TextType> SelTextType() {
        return consultingRentMapper.SelTextType();
    }

    //添加资讯
    @Override
    public int InsertRent(ConsultingRent consultingRent) {
        return consultingRentMapper.InsertRent(consultingRent);
    }

    @Override
    public int UpdateRent1(Integer rent_id) {
        return consultingRentMapper.UpdateRent1(rent_id);
    }

    @Override
    public int UpdateRent2(Integer rent_id) {
        return consultingRentMapper.UpdateRent2(rent_id);
    }

    @Override
    public List<ConsultingRent> SelectCont1() {
        return consultingRentMapper.SelectCont1();
    }

    @Override
    public List<ConsultingRent> SelectRent1() {
        return consultingRentMapper.SelectRent1();
    }

    @Override
    public ConsultingRent Seleccccc(Integer id) {
        return consultingRentMapper.Seleccccc(id);
    }
}
